Repository navigation
fix(logs): preserve false in named parameters - #1264
Merged
solnic merged 1 commit intoNov 18, 2026
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
solnic
approved these changes
Nov 18, 2026
solnic
left a comment
Collaborator
There was a problem hiding this comment.
Thank you! ❤️ Freaking booleans! 😉
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Named log parameters lose
falseduring interpolation: withparameters: %{active: false}, the templateactive=%{active}renders asactive=niland the stored parameter is"nil"instead offalse. The lookup usedMap.get(params, atom_key) || Map.get(params, string_key), so a falsy atom-key value fell through to the (missing) string key.The string key is now used as a default only when the atom key is absent, in both body interpolation and parameter collection. Atom keys keep precedence when both key forms are present.
Added a regression test in
test/sentry/log_event_test.exscovering atom and string keys withfalseand atom-key precedence; it fails onmasterand passes with the fix (mix test test/sentry/log_event_test.exs, Elixir 1.18 / OTP 27).Issues
None filed; found while reading
Sentry.LogEvent.This change was generated with assistance from Claude Code.